import request from '@/utils/request'

const baseUrl = '/complex-model-back/complex-model-back/v1.0/'
const apiContainer = {
  deleteContainer: () => {
    return request({
      url: baseUrl + 'container/delete',
      method: 'delete'
    })
  },
  startContainer: () => {
    return request({
      url: baseUrl + 'container/start',
      method: 'post'
    })
  },
  runContainer: (data) => {
    return request({
      url: baseUrl + '/image/loadImagesAndRunService',
      method: 'post',
      data
    })
  },
  stopContainer: () => {
    return request({
      url: baseUrl + 'container/stop',
      method: 'post'
    })
  },
  getContainerList: () => {
    return request({
      url: baseUrl + '/image/selectServiceByImages',
      method: 'get'
    })
  }
}
export { apiContainer }
